import request from '@/utils/request'

// 导入订单
export function uploadFile(data) {
  return request({
    url: '/shop/mp/trades/bulk/deliver',
    method: 'post',
    data
  })
}

// 传图
export function uploadImg(data, onUploadProgress) {
  return request({
    url: '/uploads',
    method: 'post',
    json: true,
    data,
    onUploadProgress
  })
}

// 上传证书
export function uploadPem(data, otherData, onUploadProgress) {
  console.log(otherData)
  return request({
    url: '/uploadPem/' + otherData.key,
    method: 'post',
    data,
    json: true,
    onUploadProgress
  })
}
